#ifndef TERMLMSG_HANDLE_H
#define TERMLMSG_HANDLE_H
#include "common.h"

typedef struct _TERM_ARGST
{
	INT8 cent[256];
	INT32 vid;
	INT32 tpid;
}TERM_ARGST;


INT32 term_common_ack(JT808_MSG_PKG *pMsg);
INT32 term_register(UINT8 *pbMsg);
INT32 term_authen(UINT8 *pbMsg);
INT32 store_data(TERM_ARGST *tmArgs, INT8 *sql);
INT32 encPkg_handle(JT808_MSG_PKG *pMsg, UINT8 *pb, INT32 sfd);
INT32 search_term_argRpy(JT808_MSG_PKG *pMsg, SET_ARGS_STR *pArgs, INT32 vid, INT32 sfd);
INT32 posInfo_report(JT808_MSG_PKG *pMsg, POS_INFO *pPos);
INT32 posInfo_search_rpy(JT808_MSG_PKG *pMsg, POSINFO_SERCHRPY *pPos_sech);
INT32 elec_bill_up(UINT8 *pbMsg, ELEC_BILL_UP *elecBill);
INT32 drvInfo_upload(UINT8 *pbMsg, DRIVER_INFO *drvInfo);
INT32 media_event_upload(UINT8 *pbMsg, MEDIA_EVENT_UP *medEvent);
INT32 media_data_upload(UINT8 *pbMsg, MEDIA_DAT_UP *medDat);
INT32 traver_record_up(UINT8 *pbMsg, TRAV_RECD_UP *trvRecd, INT32 clr, INT8 *lice);

#endif/* termlMsg_handle.h */
